package com.molamil.outboard {
	import flash.events.Event;
	import flash.events.KeyboardEvent;

	/**
	 * @author martindyrby
	 */
	public class KeyEventEntry extends EventEntry {
		public function KeyEventEntry() {
			super();
		}
		
		public var keyCode:uint;
		
		override protected function listener(event : Event) : void {
			
			if(KeyboardEvent(event).keyCode == keyCode) {
				recordingListener(callback, null);
				callback();
			}
		}
	}
}
